<?php
namespace Home\Controller;
use Think\Controller;

class BaseController extends Controller {
	
	
	//protected $lang = 'zh-cn';
	
	public function _initialize() {
		
		$this->redirect('index/index');
		// 当前语言
		/* $lang = LANG_SET;
		echo $lang;
		die; */
		//$lang = LANG_SET;
		//echo $lang;
		//echo cookie('think_language');
		
    /*	$member = session('member');
    	if (empty($member)) {
    		$this->redirect('Login/index');
    	}
    	$member = D('Member')->getAccountById($member['id']);
    	
    	// 国家
    	$all_country = L('_reg_country_name_');
    	$member['country_name'] = $all_country[$member['country']];
    	
        $this->assign('member', $member); //这里取最新的数据
        $this->assign('lang', LANG_SET); //这里取最新的数据
        
        //获得当前激活配套信息
        $matcher = D('MemberMatcher') -> getMatcherByMemberId($member['id']);
        $this->assign('matchername', $matcher['name']);  
		
        // 获取 客户服务 和 关于我们
        $typeNew5 = D('News')->getNewByType('type5', 4, 5);
        $typeNew6 = D('News')->getNewByType('type6', 4, 5);
        $this->assign('typeNew5', $typeNew5);
        $this->assign('typeNew6', $typeNew6);  */
    }
	

    public function index(){
    	/* setcookie("user", "runoob", time()+3600);
    	
    	$this->display(); */
    }
}